<?php
defined('IN_MAIN') or exit('Invalid Access!');

function replace_tag($contents,$replacements='none') {
if (is_array($replacements)) {
 while (list($code, $replace) = each ($replacements)) {
  //$contents = eregi_replace($code, $replace, $contents);
  $contents = str_replace($code, $replace, $contents);
 }
}
return $contents;
}
?>